package org.btik.lightweb.client.sensitive;

import org.btik.light.server.platform.common.api.bean.sensitive.DhPublicKey;
import org.btik.light.server.platform.common.api.service.SensitiveDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author lustre
 * @since 2023/6/6 23:32
 *
 */
@RestController
@RequestMapping("/sensitiveData")
public class SensitiveDataController {

    @Autowired
    private SensitiveDataService sensitiveDataService;

    @GetMapping("/exchangeRequest")
    public DhPublicKey exchangeRequest() {
        return sensitiveDataService.exchangeRequest();
    }
}
